package io.renren.modules.employment.controller;

import io.renren.common.utils.R;
import io.renren.modules.employment.service.EmploymentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/em")
@Api(tags="就业接口")
public class EmploymentController {

    @Autowired
    EmploymentService employmentService;

    @GetMapping("getPostionList")
    @ApiOperation("获取岗位列表")
    public R getPostionLIst(@RequestParam Map<String, Object> params){
        List list=employmentService.getPostionList(params);
        return R.ok("",100).put("data",list);
    }

}
